import * as tslib_1 from "tslib";
import { Entity, NgField, NgEntity } from '@farris/devkit';
var SysOrg8facEntity = /** @class */ (function (_super) {
    tslib_1.__extends(SysOrg8facEntity, _super);
    function SysOrg8facEntity() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgField({
            originalDataField: 'DomainID',
            dataField: 'domainID',
            primary: true,
            originalDataFieldType: 'String',
            initValue: '',
            path: 'DomainID.DomainID',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [36],
                    message: '最大长度为36',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], SysOrg8facEntity.prototype, "domainID", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'code',
            dataField: 'domainID_code',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'DomainID.DomainID_code',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [100],
                    message: '最大长度为100',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], SysOrg8facEntity.prototype, "domainID_code", void 0);
    tslib_1.__decorate([
        NgField({
            originalDataField: 'name',
            dataField: 'domainID_name',
            originalDataFieldType: 'String',
            initValue: '',
            path: 'DomainID.DomainID_name',
            validRules: [
                {
                    type: 'maxLength',
                    constraints: [100],
                    message: '最大长度为100',
                }
            ]
        }),
        tslib_1.__metadata("design:type", String)
    ], SysOrg8facEntity.prototype, "domainID_name", void 0);
    SysOrg8facEntity = tslib_1.__decorate([
        NgEntity({
            originalCode: "DomainID",
            nodeCode: "domainID"
        })
    ], SysOrg8facEntity);
    return SysOrg8facEntity;
}(Entity));
export { SysOrg8facEntity };
